package ${classPath};

import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@Data
@ToString
@NoArgsConstructor
@ApiModel(value = "${classComment}")
public class ${domain}Vo {
  
  /** id */
  @ApiModelProperty(value = "id")
  private Long id;
<#list fieldList as field>
  private ${field.type} ${field.name};

</#list>

 <#assign domainInstance="${domain?substring(0,1)?lower_case}${domain?substring(1)}"/>
  public ${domain}Vo(${domain} ${domainInstance}) {
    super();
    this.id = ${domainInstance}.getId();
    <#list fieldList as field>
    this.${field.name} = ${domainInstance}.get${field.name?cap_first}();
    </#list>
  }
}

<#--
 ${annotation?substring(annotation?last_index_of("length")+7)}
 ${annotation?substring(annotation?last_index_of("length")+7)?substring(0,annotation?last_index_of(","))}
 -->